package com.hyz.controller.assetManager;

import com.hyz.pojo.asset.Asset;
import com.hyz.pojo.asset.AssetStatusEnum;
import com.hyz.service.assetManager.AssetManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author HGD
 * @date 2022/10/2 17:13
 */
@RestController
@RequestMapping("/asset")
public class AssetManagerController {
    @Autowired
    private AssetManagerService service;

    @PostMapping("/selectAssetByStatus")
    public List<Asset> selectAssetByStatus(@RequestBody Long status) {
        return service.selectAssetByStatus(status);
    }
}
